body {
    margin: 0;
    font-family: 'Ethnocentric', sans-serif;
    color: white;
    background: url('../Resource/Recurso 2.png'), radial-gradient(circle, #22262b, #00061f, #00001a, #000015);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: 90% auto, cover;
    height: 2500px;
    overflow-x:hidden ;
}

@font-face {
    font-family: 'Ethnocentric';
    src: url('/Resource/Fonts/ETHNOCENTRIC RG.TTF') format('truetype');
}

.box {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    background: #060c21;
    transition: 0.5s;
    margin-bottom: 40px;
}

.box:hover {
    height: 400px;
}

.box .imgBX {
    position: absolute;
    box-sizing: border-box;
}

.pos1 .imgBX {
    top: 15px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos2 .imgBX {
    top: 15px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos3 .imgBX {
    top: 30px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos4 .imgBX {
    top: 40px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos5 .imgBX {
    top: 15px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos6 .imgBX {
    top: 50px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos7 .imgBX {
    top: 40px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos8 .imgBX {
    top: 8px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos9 .imgBX {
    top: 40px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos10 .imgBX {
    top: 10px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos11 .imgBX {
    top: 40px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos12 .imgBX {
    top: 15px;
    left: 25px;
    width: 70%;
    height: 70%;
    padding: 10px;
}

.pos13 .imgBX {
    top: 10px;
    left: 45px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos14 .imgBX {
    top: 30px;
    left: 19px;
    width: 75%;
    height: 75%;
    padding: 10px;
}

.pos15 .imgBX {
    top: 10px;
    left: 25px;
    width: 70%;
    height: 70%;
    padding: 10px;
}

.pos16 .imgBX {
    top: 20px;
    left: 18px;
    width: 75%;
    height: 75%;
    padding: 10px;
}

.pos17 .imgBX {
    top: 10px;
    left: 42px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.pos18 .imgBX {
    top: 10px;
    left: 48px;
    width: 60%;
    height: 60%;
    padding: 10px;
}

.box .imgBX img {
    max-width: 120%;
    opacity: 0.1;
    transition: 0.5s;
}

.box:hover .imgBX img {
    opacity: 1;
}

.box:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #fff;
    z-index: -1;
}

.box:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #fff;
    z-index: -2;
    filter: blur(40px);
}

.box:before,
.box:after {
    background: linear-gradient(235deg, #89ff00, #010615, #89ff00);
}

.box:nth-child(2):before,
.box:nth-child(2):after {
    background: linear-gradient(235deg, #ff005e, #010615, #ff005e);
}

.box:nth-child(3):before,
.box:nth-child(3):after {
    background: linear-gradient(235deg, #772aff, #010615, #772aff);
}

.box:nth-child(4):before,
.box:nth-child(4):after {
    background: linear-gradient(235deg, #00bcd4, #010615, #00bcd4);
}

.box:nth-child(5):before,
.box:nth-child(5):after {
    background: linear-gradient(235deg, #fbff00, #010615, #fbff00);
}

.box:nth-child(6):before,
.box:nth-child(6):after {
    background: linear-gradient(235deg, #ff005e, #010615, #ff005e);
}

.box:nth-child(7):before,
.box:nth-child(7):after {
    background: linear-gradient(235deg, #772aff, #010615, #2196F3);
}
.box:nth-child(8):before,
.box:nth-child(8):after {
    background: linear-gradient(235deg, #00bcd4, #010615, #00bcd4);
}

.box:nth-child(9):before,
.box:nth-child(9):after {
    background: linear-gradient(235deg, #fbff00, #010615, #fbff00);
}

.box:nth-child(10):before,
.box:nth-child(10):after {
    background: linear-gradient(235deg, #ff005e, #010615, #ff005e);
}

.box:nth-child(11):before,
.box:nth-child(11):after {
    background: linear-gradient(235deg, #89ff00, #010615, #89ff00);
}

.box:nth-child(12):before,
.box:nth-child(12):after {
    background: linear-gradient(235deg, #772aff, #010615, #2196F3);
}
.box:nth-child(13):before,
.box:nth-child(13):after {
    background: linear-gradient(235deg, #00bcd4, #010615, #00bcd4);
}

.box:nth-child(14):before,
.box:nth-child(14):after {
    background: linear-gradient(235deg, #fbff00, #010615, #fbff00);
}

.box:nth-child(15):before,
.box:nth-child(15):after {
    background: linear-gradient(235deg, #772aff, #010615, #772aff);
}

.box:nth-child(16):before,
.box:nth-child(16):after {
    background: linear-gradient(235deg, #fbff00, #010615, #fbff00);
}

.box:nth-child(17):before,
.box:nth-child(17):after {
    background: linear-gradient(235deg, #89ff00, #010615, #89ff00);
}

.box:nth-child(18):before,
.box:nth-child(18):after {
    background: linear-gradient(235deg, #ff005e, #010615, #ff005e);
}

.box .content {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 90px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s;
}

.box:hover .content {
    opacity: 1;
}

.box .content h2 {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1px;
    font-family: 'Ethnocentric', sans-serif;
}

.box .content h2 span {
    font-size: 12px;
    color: #fff;
    font-weight: 200;
    letter-spacing: 2px;
    font-family: 'Ethnocentric', sans-serif;
}

.img-1 {
    width: 120%;
    height: auto;
}

.img-2 {
    width: 120%;
    height: auto;
}

.img-3 {
    width: 120%;
    height: auto;
}

.img-4 {
    width: 120%;
    height: auto;
}

.img-5 {
    width: 120%;
    height: auto;
}

.img-6 {
    width: 120%;
    height: auto;
}

.img-7 {
    width: 120%;
    height: auto;
}

.img-8 {
    width: 120%;
    height: auto;
}

.img-9 {
    width: 120%;
    height: auto;
}

.img-10 {
    width: 120%;
    height: auto;
}

.img-11 {
    width: 120%;
    height: auto;
}

.img-12 {
    width: 120%;
    height: auto;
}

.img-13 {
    width: 120%;
    height: auto;
}

.img-14 {
    width: 120%;
    height: auto;
}

.img-15 {
    width: 120%;
    height: auto;
}

.img-16 {
    width: 120%;
    height: auto;
}

.img-17 {
    width: 120%;
    height: auto;
}

.img-18 {
    width: 120%;
    height: auto;
}

.container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0 150px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
}

.container .pos1 {
    grid-row: 1;
    grid-column: 1;
    margin-top: 200px;
}

.container .pos2 {
    grid-row: 1;
    grid-column: 2;
}

.container .pos3 {
    grid-row: 1;
    grid-column: 3;
    margin-top: 200px;
}

.container .pos4 {
    grid-row: 2;
    grid-column: 1;
}

.container .pos5 {
    grid-row: 2;
    grid-column: 2;
    margin-top: -150px;
}

.container .pos6 {
    grid-row: 2;
    grid-column: 3;
}

.container .pos7 {
    grid-row: 3;
    grid-column: 1;
}

.container .pos8 {
    grid-row: 3;
    grid-column: 2;
    margin-top: -150px;
}

.container .pos9 {
    grid-row: 3;
    grid-column: 3;
}

.container .pos10 {
    grid-row: 4;
    grid-column: 1;
}

.container .pos11 {
    grid-row: 4;
    grid-column: 2;
    margin-top: -150px;
}

.container .pos12 {
    grid-row: 4;
    grid-column: 3;
}

.container .pos13 {
    grid-row: 5;
    grid-column: 1;
}

.container .pos14 {
    grid-row: 5;
    grid-column: 2;
    margin-top: -150px;
}

.container .pos15 {
    grid-row: 5;
    grid-column: 3;
}

.container .pos16 {
    grid-row: 6;
    grid-column: 1;
}

.container .pos17 {
    grid-row: 6;
    grid-column: 2;
    margin-top: -150px;
}

.container .pos18 {
    grid-row: 6;
    grid-column: 3;
}



@media (max-width: 1200px) {
    body {
        height: 3400px;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 150px;
    }
    .box .imgBX img {
        opacity: 1;
    }
    .box .content {
        background: rgba(0, 0, 0, 0.6);
    }

    .container .pos1 {
        grid-row: 1;
        grid-column: 2;
        margin-top: 0px;
    }

    .container .pos2 {
        grid-row: 1;
        grid-column: 1;
    }
    
    .container .pos3 {
        grid-row: 2;
        grid-column: 1;
        margin-top: 0px;
    }

    .container .pos4 {
        grid-row: 2;
        grid-column: 2;
    }

    .container .pos5 {
        grid-row: 3;
        grid-column: 1;
        margin-top: 0px;
    }

    .container .pos6 {
        grid-row: 3;
        grid-column: 2;
    }

    .container .pos7 {
        grid-row: 4;
        grid-column: 1;
    }

    .container .pos8 {
        grid-row: 4;
        grid-column: 2;
        margin-top: 0px;
    }

    .container .pos9 {
        grid-row: 5;
        grid-column: 1;
    }

    .container .pos10 {
        grid-row: 5;
        grid-column: 2;
    }
    .container .pos11 {
        grid-row: 6;
        grid-column: 1;
        margin-top: 0px;
    }

    .container .pos12 {
        grid-row: 6;
        grid-column: 2;
    }

    .container .pos13 {
        grid-row: 7;
        grid-column: 1;
    }

    .container .pos14 {
        grid-row: 7;
        grid-column: 2;
        margin-top: 0px;
    }

    .container .pos15 {
        grid-row: 8;
        grid-column: 1;
    }

    .container .pos16 {
        grid-row: 8;
        grid-column: 2;
    }

    .container .pos17 {
        grid-row: 9;
        grid-column: 1;
        margin-top: 0px;
    }

    .container .pos18 {
        grid-row: 9;
        grid-column: 2;
    }
}


@media (max-width: 950px) {
    body {
        height: 3500px;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
        grid-gap: 50px 25px;
    }

    .box {
        width: 200px;
        height: 300px;
        margin: 10px;
    }

    .box .imgBX {
        top: 1px;
        left: 1px;
    }

    .box .imgBX img {
        max-width: 80%;
    }

    .box .content {
        opacity: 1;
        height: 90px;
    }

    .box .content h2 {
        font-size: 14px;
    }

    .box .content h2 span {
        font-size: 10px;
    }

    /* Desactivar hover en dispositivos móviles */
    .box:hover {
        height: 200px;
        /* mismo valor que .box */
    }

    .box:hover .imgBX img {
        opacity: 1;
        /* mismo valor que .box .imgBX img */
    }

    .box:hover .content {
        opacity: 1;
        /* mismo valor que .box .content */
    }

    .pos1 .imgBX {
        top: 15px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos2 .imgBX {
        top: 10px;
        left: 26px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos3 .imgBX {
        top: 10px;
        left: 19px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos4 .imgBX {
        top: 10px;
        left: 18px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos5 .imgBX {
        top: 10px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos6 .imgBX {
        top: 40px;
        left: 20px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos7 .imgBX {
        top: 30px;
        left: 20px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos8 .imgBX {
        top: 8px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos9 .imgBX {
        top: 20px;
        left: 20px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos10 .imgBX {
        top: 10px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos11 .imgBX {
        top: 30px;
        left: 19px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos12 .imgBX {
        top: 10px;
        left: 19px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos13 .imgBX {
        top: 4px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos14 .imgBX {
        top: 20px;
        left: 20px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos15 .imgBX {
        top: 10px;
        left: 20px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos16 .imgBX {
        top: 10px;
        left: 20px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos17 .imgBX {
        top: 10px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos18 .imgBX {
        top: 10px;
        left: 28px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }
}

/* CSS para pantallas más pequeñas */
@media (max-width: 600px) {
    body {
        height: 2400px;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
    }

    .box {
        width: 150px;
        height: 200px;
        margin: 5px;
    }

    .box .content h2 {
        font-size: 7px;
    }

    .box .content h2 span {
        font-size: 6px;
    }

    .box .content {
        background: rgba(0, 0, 0, 0.6);
        opacity: 1;
        height: 40px;
    }

    /* Desactivar hover en dispositivos móviles */
    .box:hover {
        height: 150px;
        /* mismo valor que .box */
    }

    .box:hover .imgBX img {
        opacity: 1;
        /* mismo valor que .box .imgBX img */
    }

    .box:hover .content {
        opacity: 1;
        /* mismo valor que .box .content */
    }

    .pos1 .imgBX {
        top: 10px;
        left: 20px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos2 .imgBX {
        top: 10px;
        left: 22px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos3 .imgBX {
        top: 10px;
        left: 14px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos4 .imgBX {
        top: 10px;
        left: 14px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos5 .imgBX {
        top: 10px;
        left: 20px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos6 .imgBX {
        top: 20px;
        left: 15px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos7 .imgBX {
        top: 20px;
        left: 15px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos8 .imgBX {
        top: 8px;
        left: 20px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos9 .imgBX {
        top: 10px;
        left: 14px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos10 .imgBX {
        top: 10px;
        left: 22px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos11 .imgBX {
        top: 15px;
        left: 15px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos12 .imgBX {
        top: 10px;
        left: 20px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos13 .imgBX {
        top: 20px;
        left: 15px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos14 .imgBX {
        top: 20px;
        left: 15px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos15 .imgBX {
        top: 8px;
        left: 20px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos16 .imgBX {
        top: 10px;
        left: 14px;
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .pos17 .imgBX {
        top: 10px;
        left: 22px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }

    .pos18 .imgBX {
        top: 10px;
        left: 20px;
        width: 90%;
        height: 90%;
        padding: 10px;
    }
}